import request from "@/utils/request";

// 查询面料维护列表
export function listRecord(query) {
  return request({
    url: "/qb/setting/list",
    method: "get",
    params: query,
  });
}

// 查询面料维护详细
export function getRecord(mdFabricId) {
  return request({
    url: "/qb/setting/" + mdFabricId,
    method: "get",
  });
}

// 新增面料维护
export function addRecord(data) {
  return request({
    url: "/qb/setting",
    method: "post",
    data: data,
  });
}

// 修改面料维护
export function updateRecord(data) {
  return request({
    url: "/qb/setting",
    method: "put",
    data: data,
  });
}

// 删除面料维护
export function delRecord(mdFabricId) {
  return request({
    url: "/qb/setting/" + mdFabricId,
    method: "delete",
  });
}
//查询面料对应的未裁切订单
export function getProductByFabricName(query) {
  return request({
    url: "/mobile/md/workstation/getProductByFabricName",
    method: "get",
    params: query,
  });
}
